cgdb software package provides curses-based interface to the GNU Debugger (GDB), you can install in your Debian 9 (Stretch) by running the commands given below on the terminal,
$ sudo apt-get update $ sudo apt-get install cgdb
cgdb is installed in your system.
Make ensure the cgdb package were installed using the commands given below,
$ sudo dpkg-query -l | grep cgdb *
You will get with cgdb package name, version, architecture and description in a table
| Distro | Debian 9 stretch |
| Section | Development |
| Package | cgdb |
| Version | 0.6.7-2+b2 |
| Description | curses-based interface to the GNU Debugger (GDB) |
| Sub Section | devel |